package com.jinlejia.erp.ui.common;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Map;

/**
 * @author SongJiaTai
 * @description:Bandle存储Arraylist<Map<Object,Object>
 * @date :2020/8/21 11:47
 */
public class BundleArrayListBean implements Serializable, Parcelable {
    private ArrayList<Map<String, Object>> dataList;

    public BundleArrayListBean(ArrayList<Map<String, Object>> dataList) {
        this.dataList = dataList;
    }

    protected BundleArrayListBean(Parcel in) {
    }

    public static final Creator<BundleArrayListBean> CREATOR = new Creator<BundleArrayListBean>() {
        @Override
        public BundleArrayListBean createFromParcel(Parcel in) {
            return new BundleArrayListBean(in);
        }

        @Override
        public BundleArrayListBean[] newArray(int size) {
            return new BundleArrayListBean[size];
        }
    };

    public ArrayList<Map<String, Object>> getDataList() {
        return dataList;
    }

    public void setDataList(ArrayList<Map<String, Object>> dataList) {
        this.dataList = dataList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }
}
